package com.hehua.BuilderThree;

/**
 * 男人建造器
 */
public abstract class ManBuilder {
    protected Man man = new Man();

    public abstract void buildLove();
    public abstract void buildName();
    public abstract void buildAge();

    public Boolean isLove(){
        return false;
    }
    public Man construct(){
        this.buildName();
        this.buildAge();
        if (this.isLove()){
            this.buildLove();
        }
        return man;
    }
}
